3.6.30 \(\int \frac {\sqrt {d+e x}}{x (a+b x+c x^2)} \, dx\) [530]

Optimal. Leaf size=275 \[ -\frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{a}+\frac {\sqrt {2} \sqrt {c} \left (b d+\sqrt {b^2-4 a c} d-2 a e\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}-\frac {\sqrt {2} \sqrt {c} \left (b d-\sqrt {b^2-4 a c} d-2 a e\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}} \]

[Out]

-2*arctanh((e*x+d)^(1/2)/d^(1/2))*d^(1/2)/a+arctanh(2^(1/2)*c^(1/2)*(e*x+d)^(1/2)/(2*c*d-e*(b-(-4*a*c+b^2)^(1/
2)))^(1/2))*2^(1/2)*c^(1/2)*(b*d-2*a*e+d*(-4*a*c+b^2)^(1/2))/a/(-4*a*c+b^2)^(1/2)/(2*c*d-e*(b-(-4*a*c+b^2)^(1/
2)))^(1/2)-arctanh(2^(1/2)*c^(1/2)*(e*x+d)^(1/2)/(2*c*d-e*(b+(-4*a*c+b^2)^(1/2)))^(1/2))*2^(1/2)*c^(1/2)*(b*d-
2*a*e-d*(-4*a*c+b^2)^(1/2))/a/(-4*a*c+b^2)^(1/2)/(2*c*d-e*(b+(-4*a*c+b^2)^(1/2)))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.74, antiderivative size = 275, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {911, 1301, 212, 1180, 214} \begin {gather*} \frac {\sqrt {2} \sqrt {c} \left (d \sqrt {b^2-4 a c}-2 a e+b d\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}}-\frac {\sqrt {2} \sqrt {c} \left (-d \sqrt {b^2-4 a c}-2 a e+b d\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}}-\frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[d + e*x]/(x*(a + b*x + c*x^2)),x]

[Out]

(-2*Sqrt[d]*ArcTanh[Sqrt[d + e*x]/Sqrt[d]])/a + (Sqrt[2]*Sqrt[c]*(b*d + Sqrt[b^2 - 4*a*c]*d - 2*a*e)*ArcTanh[(
Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[2*c*d - (b - Sqrt[b^2 - 4*a*c])*e]])/(a*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b
- Sqrt[b^2 - 4*a*c])*e]) - (Sqrt[2]*Sqrt[c]*(b*d - Sqrt[b^2 - 4*a*c]*d - 2*a*e)*ArcTanh[(Sqrt[2]*Sqrt[c]*Sqrt[
d + e*x])/Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*e]])/(a*Sqrt[b^2 - 4*a*c]*Sqrt[2*c*d - (b + Sqrt[b^2 - 4*a*c])*
e])

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 911

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))^(n_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :
> With[{q = Denominator[m]}, Dist[q/e, Subst[Int[x^(q*(m + 1) - 1)*((e*f - d*g)/e + g*(x^q/e))^n*((c*d^2 - b*d
*e + a*e^2)/e^2 - (2*c*d - b*e)*(x^q/e^2) + c*(x^(2*q)/e^2))^p, x], x, (d + e*x)^(1/q)], x]] /; FreeQ[{a, b, c
, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0] && IntegersQ[n,
 p] && FractionQ[m]

Rule 1180

Int[((d_) + (e_.)*(x_)^2)/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> With[{q = Rt[b^2 - 4*a*c, 2]}, Di
st[e/2 + (2*c*d - b*e)/(2*q), Int[1/(b/2 - q/2 + c*x^2), x], x] + Dist[e/2 - (2*c*d - b*e)/(2*q), Int[1/(b/2 +
 q/2 + c*x^2), x], x]] /; FreeQ[{a, b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - a*e^2, 0] && PosQ[b^
2 - 4*a*c]

Rule 1301

Int[(((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^2)^(q_.))/((a_) + (b_.)*(x_)^2 + (c_.)*(x_)^4), x_Symbol] :> Int[Ex
pandIntegrand[(f*x)^m*((d + e*x^2)^q/(a + b*x^2 + c*x^4)), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b^
2 - 4*a*c, 0] && IntegerQ[q] && IntegerQ[m]

Rubi steps

\begin {align*} \int \frac {\sqrt {d+e x}}{x \left (a+b x+c x^2\right )} \, dx &=\frac {2 \text {Subst}\left (\int \frac {x^2}{\left (-\frac {d}{e}+\frac {x^2}{e}\right ) \left (\frac {c d^2-b d e+a e^2}{e^2}-\frac {(2 c d-b e) x^2}{e^2}+\frac {c x^4}{e^2}\right )} \, dx,x,\sqrt {d+e x}\right )}{e}\\ &=\frac {2 \text {Subst}\left (\int \left (-\frac {d e}{a \left (d-x^2\right )}+\frac {e \left (c d^2-b d e+a e^2-c d x^2\right )}{a \left (c d^2-b d e+a e^2-(2 c d-b e) x^2+c x^4\right )}\right ) \, dx,x,\sqrt {d+e x}\right )}{e}\\ &=\frac {2 \text {Subst}\left (\int \frac {c d^2-b d e+a e^2-c d x^2}{c d^2-b d e+a e^2+(-2 c d+b e) x^2+c x^4} \, dx,x,\sqrt {d+e x}\right )}{a}-\frac {(2 d) \text {Subst}\left (\int \frac {1}{d-x^2} \, dx,x,\sqrt {d+e x}\right )}{a}\\ &=-\frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{a}+\frac {\left (c \left (b d-\sqrt {b^2-4 a c} d-2 a e\right )\right ) \text {Subst}\left (\int \frac {1}{\frac {1}{2} \sqrt {b^2-4 a c} e+\frac {1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt {d+e x}\right )}{a \sqrt {b^2-4 a c}}-\frac {\left (c \left (b d+\sqrt {b^2-4 a c} d-2 a e\right )\right ) \text {Subst}\left (\int \frac {1}{-\frac {1}{2} \sqrt {b^2-4 a c} e+\frac {1}{2} (-2 c d+b e)+c x^2} \, dx,x,\sqrt {d+e x}\right )}{a \sqrt {b^2-4 a c}}\\ &=-\frac {2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{a}+\frac {\sqrt {2} \sqrt {c} \left (b d+\sqrt {b^2-4 a c} d-2 a e\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-\left (b-\sqrt {b^2-4 a c}\right ) e}}-\frac {\sqrt {2} \sqrt {c} \left (b d-\sqrt {b^2-4 a c} d-2 a e\right ) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\right )}{a \sqrt {b^2-4 a c} \sqrt {2 c d-\left (b+\sqrt {b^2-4 a c}\right ) e}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.84, size = 266, normalized size = 0.97 \begin {gather*} -\frac {\frac {\sqrt {2} \sqrt {c} \left (b d+\sqrt {b^2-4 a c} d-2 a e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {-2 c d+b e-\sqrt {b^2-4 a c} e}}\right )}{\sqrt {b^2-4 a c} \sqrt {-2 c d+\left (b-\sqrt {b^2-4 a c}\right ) e}}+\frac {\sqrt {2} \sqrt {c} \left (-b d+\sqrt {b^2-4 a c} d+2 a e\right ) \tan ^{-1}\left (\frac {\sqrt {2} \sqrt {c} \sqrt {d+e x}}{\sqrt {-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}}\right )}{\sqrt {b^2-4 a c} \sqrt {-2 c d+\left (b+\sqrt {b^2-4 a c}\right ) e}}+2 \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{a} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[d + e*x]/(x*(a + b*x + c*x^2)),x]

[Out]

-(((Sqrt[2]*Sqrt[c]*(b*d + Sqrt[b^2 - 4*a*c]*d - 2*a*e)*ArcTan[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[-2*c*d + b
*e - Sqrt[b^2 - 4*a*c]*e]])/(Sqrt[b^2 - 4*a*c]*Sqrt[-2*c*d + (b - Sqrt[b^2 - 4*a*c])*e]) + (Sqrt[2]*Sqrt[c]*(-
(b*d) + Sqrt[b^2 - 4*a*c]*d + 2*a*e)*ArcTan[(Sqrt[2]*Sqrt[c]*Sqrt[d + e*x])/Sqrt[-2*c*d + (b + Sqrt[b^2 - 4*a*
c])*e]])/(Sqrt[b^2 - 4*a*c]*Sqrt[-2*c*d + (b + Sqrt[b^2 - 4*a*c])*e]) + 2*Sqrt[d]*ArcTanh[Sqrt[d + e*x]/Sqrt[d
]])/a)

________________________________________________________________________________________

Maple [A]
time = 0.12, size = 291, normalized size = 1.06

method result size
derivativedivides \(2 e^{2} \left (\frac {4 c \left (\frac {\left (-2 a \,e^{2}+b d e -\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, d \right ) \sqrt {2}\, \arctan \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (e b -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (e b -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}-\frac {\left (2 a \,e^{2}-b d e -\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, d \right ) \sqrt {2}\, \arctanh \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (-e b +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (-e b +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{a \,e^{2}}-\frac {\sqrt {d}\, \arctanh \left (\frac {\sqrt {e x +d}}{\sqrt {d}}\right )}{a \,e^{2}}\right )\) \(291\)
default \(2 e^{2} \left (\frac {4 c \left (\frac {\left (-2 a \,e^{2}+b d e -\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, d \right ) \sqrt {2}\, \arctan \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (e b -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (e b -2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}-\frac {\left (2 a \,e^{2}-b d e -\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, d \right ) \sqrt {2}\, \arctanh \left (\frac {c \sqrt {e x +d}\, \sqrt {2}}{\sqrt {\left (-e b +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{8 \sqrt {-e^{2} \left (4 a c -b^{2}\right )}\, \sqrt {\left (-e b +2 c d +\sqrt {-e^{2} \left (4 a c -b^{2}\right )}\right ) c}}\right )}{a \,e^{2}}-\frac {\sqrt {d}\, \arctanh \left (\frac {\sqrt {e x +d}}{\sqrt {d}}\right )}{a \,e^{2}}\right )\) \(291\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)^(1/2)/x/(c*x^2+b*x+a),x,method=_RETURNVERBOSE)

[Out]

2*e^2*(4/a/e^2*c*(1/8*(-2*a*e^2+b*d*e-(-e^2*(4*a*c-b^2))^(1/2)*d)/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((e*b-2*c*d
+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)*arctan(c*(e*x+d)^(1/2)*2^(1/2)/((e*b-2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1
/2))-1/8*(2*a*e^2-b*d*e-(-e^2*(4*a*c-b^2))^(1/2)*d)/(-e^2*(4*a*c-b^2))^(1/2)*2^(1/2)/((-e*b+2*c*d+(-e^2*(4*a*c
-b^2))^(1/2))*c)^(1/2)*arctanh(c*(e*x+d)^(1/2)*2^(1/2)/((-e*b+2*c*d+(-e^2*(4*a*c-b^2))^(1/2))*c)^(1/2)))-d^(1/
2)/a/e^2*arctanh((e*x+d)^(1/2)/d^(1/2)))

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^(1/2)/x/(c*x^2+b*x+a),x, algorithm="maxima")

[Out]

integrate(sqrt(x*e + d)/((c*x^2 + b*x + a)*x), x)

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1241 vs. \(2 (234) = 468\).
time = 2.73, size = 2489, normalized size = 9.05 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^(1/2)/x/(c*x^2+b*x+a),x, algorithm="fricas")

[Out]

[1/2*(sqrt(2)*a*sqrt(-(a*b*e - (b^2 - 2*a*c)*d + (a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4
*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c))*log(sqrt(2)*((b^3 - 4*a*b*c)*d - (a*b^2 - 4*a^2*c)*e + (a^2*b^3 - 4*a^3
*b*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))*sqrt(-(a*b*e - (b^2 - 2*a*c)*d + (a^2*b^2 - 4
*a^3*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c)) - 4*(b*c*d - a*c*e)*sq
rt(x*e + d)) - sqrt(2)*a*sqrt(-(a*b*e - (b^2 - 2*a*c)*d + (a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*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*(b*c*d - a*c*e)*
sqrt(x*e + d)) + sqrt(2)*a*sqrt(-(a*b*e - (b^2 - 2*a*c)*d - (a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^
2*e^2)/(a^4*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c))*log(sqrt(2)*((b^3 - 4*a*b*c)*d - (a*b^2 - 4*a^2*c)*e - (a^2*
b^3 - 4*a^3*b*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))*sqrt(-(a*b*e - (b^2 - 2*a*c)*d - (
a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c)) - 4*(b*c*d
- a*c*e)*sqrt(x*e + d)) - sqrt(2)*a*sqrt(-(a*b*e - (b^2 - 2*a*c)*d - (a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*a*b
*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c))*log(-sqrt(2)*((b^3 - 4*a*b*c)*d - (a*b^2 - 4*a^2*c)
*e - (a^2*b^3 - 4*a^3*b*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))*sqrt(-(a*b*e - (b^2 - 2*
a*c)*d - (a^2*b^2 - 4*a^3*c)*sqrt((b^2*d^2 - 2*a*b*d*e + a^2*e^2)/(a^4*b^2 - 4*a^5*c)))/(a^2*b^2 - 4*a^3*c)) -
 4*(b*c*d - a*c*e)*sqrt(x*e + d)) + 4*sqrt(-d)*arctan(sqrt(x*e + d)*sqrt(-d)/d))/a]

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)**(1/2)/x/(c*x**2+b*x+a),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 712 vs. \(2 (234) = 468\).
time = 1.98, size = 712, normalized size = 2.59 \begin {gather*} \frac {2 \, d \arctan \left (\frac {\sqrt {x e + d}}{\sqrt {-d}}\right )}{a \sqrt {-d}} - \frac {{\left (\sqrt {-4 \, c^{2} d + 2 \, {\left (b c - \sqrt {b^{2} - 4 \, a c} c\right )} e} {\left (b^{2} - 4 \, a c\right )} a^{2} d e - 2 \, {\left (\sqrt {b^{2} - 4 \, a c} a c d^{2} - \sqrt {b^{2} - 4 \, a c} a b d e + \sqrt {b^{2} - 4 \, a c} a^{2} e^{2}\right )} \sqrt {-4 \, c^{2} d + 2 \, {\left (b c - \sqrt {b^{2} - 4 \, a c} c\right )} e} {\left | a \right |} - {\left (2 \, a^{2} b c d^{2} + 2 \, a^{3} b e^{2} - {\left (a^{2} b^{2} + 4 \, a^{3} c\right )} d e\right )} \sqrt {-4 \, c^{2} d + 2 \, {\left (b c - \sqrt {b^{2} - 4 \, a c} c\right )} e}\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {x e + d}}{\sqrt {-\frac {2 \, a c d - a b e + \sqrt {-4 \, {\left (a c d^{2} - a b d e + a^{2} e^{2}\right )} a c + {\left (2 \, a c d - a b e\right )}^{2}}}{a c}}}\right )}{4 \, {\left (\sqrt {b^{2} - 4 \, a c} a^{2} c d^{2} - \sqrt {b^{2} - 4 \, a c} a^{2} b d e + \sqrt {b^{2} - 4 \, a c} a^{3} e^{2}\right )} {\left | a \right |} {\left | c \right |}} + \frac {{\left (\sqrt {-4 \, c^{2} d + 2 \, {\left (b c + \sqrt {b^{2} - 4 \, a c} c\right )} e} {\left (b^{2} - 4 \, a c\right )} a^{2} d e + 2 \, {\left (\sqrt {b^{2} - 4 \, a c} a c d^{2} - \sqrt {b^{2} - 4 \, a c} a b d e + \sqrt {b^{2} - 4 \, a c} a^{2} e^{2}\right )} \sqrt {-4 \, c^{2} d + 2 \, {\left (b c + \sqrt {b^{2} - 4 \, a c} c\right )} e} {\left | a \right |} - {\left (2 \, a^{2} b c d^{2} + 2 \, a^{3} b e^{2} - {\left (a^{2} b^{2} + 4 \, a^{3} c\right )} d e\right )} \sqrt {-4 \, c^{2} d + 2 \, {\left (b c + \sqrt {b^{2} - 4 \, a c} c\right )} e}\right )} \arctan \left (\frac {2 \, \sqrt {\frac {1}{2}} \sqrt {x e + d}}{\sqrt {-\frac {2 \, a c d - a b e - \sqrt {-4 \, {\left (a c d^{2} - a b d e + a^{2} e^{2}\right )} a c + {\left (2 \, a c d - a b e\right )}^{2}}}{a c}}}\right )}{4 \, {\left (\sqrt {b^{2} - 4 \, a c} a^{2} c d^{2} - \sqrt {b^{2} - 4 \, a c} a^{2} b d e + \sqrt {b^{2} - 4 \, a c} a^{3} e^{2}\right )} {\left | a \right |} {\left | c \right |}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^(1/2)/x/(c*x^2+b*x+a),x, algorithm="giac")

[Out]

2*d*arctan(sqrt(x*e + d)/sqrt(-d))/(a*sqrt(-d)) - 1/4*(sqrt(-4*c^2*d + 2*(b*c - sqrt(b^2 - 4*a*c)*c)*e)*(b^2 -
 4*a*c)*a^2*d*e - 2*(sqrt(b^2 - 4*a*c)*a*c*d^2 - sqrt(b^2 - 4*a*c)*a*b*d*e + sqrt(b^2 - 4*a*c)*a^2*e^2)*sqrt(-
4*c^2*d + 2*(b*c - sqrt(b^2 - 4*a*c)*c)*e)*abs(a) - (2*a^2*b*c*d^2 + 2*a^3*b*e^2 - (a^2*b^2 + 4*a^3*c)*d*e)*sq
rt(-4*c^2*d + 2*(b*c - sqrt(b^2 - 4*a*c)*c)*e))*arctan(2*sqrt(1/2)*sqrt(x*e + d)/sqrt(-(2*a*c*d - a*b*e + sqrt
(-4*(a*c*d^2 - a*b*d*e + a^2*e^2)*a*c + (2*a*c*d - a*b*e)^2))/(a*c)))/((sqrt(b^2 - 4*a*c)*a^2*c*d^2 - sqrt(b^2
 - 4*a*c)*a^2*b*d*e + sqrt(b^2 - 4*a*c)*a^3*e^2)*abs(a)*abs(c)) + 1/4*(sqrt(-4*c^2*d + 2*(b*c + sqrt(b^2 - 4*a
*c)*c)*e)*(b^2 - 4*a*c)*a^2*d*e + 2*(sqrt(b^2 - 4*a*c)*a*c*d^2 - sqrt(b^2 - 4*a*c)*a*b*d*e + sqrt(b^2 - 4*a*c)
*a^2*e^2)*sqrt(-4*c^2*d + 2*(b*c + sqrt(b^2 - 4*a*c)*c)*e)*abs(a) - (2*a^2*b*c*d^2 + 2*a^3*b*e^2 - (a^2*b^2 +
4*a^3*c)*d*e)*sqrt(-4*c^2*d + 2*(b*c + sqrt(b^2 - 4*a*c)*c)*e))*arctan(2*sqrt(1/2)*sqrt(x*e + d)/sqrt(-(2*a*c*
d - a*b*e - sqrt(-4*(a*c*d^2 - a*b*d*e + a^2*e^2)*a*c + (2*a*c*d - a*b*e)^2))/(a*c)))/((sqrt(b^2 - 4*a*c)*a^2*
c*d^2 - sqrt(b^2 - 4*a*c)*a^2*b*d*e + sqrt(b^2 - 4*a*c)*a^3*e^2)*abs(a)*abs(c))

________________________________________________________________________________________

Mupad [B]
time = 7.41, size = 2500, normalized size = 9.09 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d + e*x)^(1/2)/(x*(a + b*x + c*x^2)),x)

[Out]

- atan(((((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b
^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*((((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*
(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^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^2*e^10 + 64*a*b*c^4*d^3*e^9
 - 32*a*b^3*c^2*d*e^11 + 160*a^2*b*c^3*d*e^11 - 192*a*b^2*c^3*d^2*e^10) + (d + e*x)^(1/2)*(32*a^2*c^3*e^12 + 9
6*c^5*d^4*e^8 - 128*b*c^4*d^3*e^9 + 64*b^2*c^3*d^2*e^10 - 64*a*b*c^3*d*e^11))*((b^4*d + 8*a^2*c^2*d - a*b^3*e
+ a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^
4*c^2 - 8*a^3*b^2*c)))^(1/2)*1i - (((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a
*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*(96*a*c^5*d^4*
e^8 - (((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2
*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*((d + e*x)^(1/2)*((b^4*d + 8*a^2*c^2*d - a
*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4
+ 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*(512*a^5*c^4*e^10 + 32*a^3*b^4*c^2*e^10 - 256*a^4*b^2*c^3*e^10 + 768*a^4*c
^5*d^2*e^8 + 64*a^2*b^4*c^3*d^2*e^8 - 448*a^3*b^2*c^4*d^2*e^8 - 896*a^4*b*c^4*d*e^9 - 64*a^2*b^5*c^2*d*e^9 + 4
80*a^3*b^3*c^3*d*e^9) + 384*a^4*c^4*d*e^10 + 384*a^3*c^5*d^3*e^8 - 96*a^2*b^2*c^4*d^3*e^8 + 96*a^2*b^3*c^3*d^2
*e^9 - 384*a^3*b*c^4*d^2*e^9 - 96*a^3*b^2*c^3*d*e^10) - (d + e*x)^(1/2)*(128*a^3*b*c^3*e^11 + 192*a^3*c^4*d*e^
10 - 32*a^2*b^3*c^2*e^11 + 576*a^2*c^5*d^3*e^8 + 64*b^4*c^3*d^3*e^8 - 64*b^5*c^2*d^2*e^9 + 64*a*b^4*c^2*d*e^10
 - 384*a*b^2*c^4*d^3*e^8 + 384*a*b^3*c^3*d^2*e^9 - 576*a^2*b*c^4*d^2*e^9 - 288*a^2*b^2*c^3*d*e^10))*((b^4*d +
8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*
e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2) + 96*a^2*c^4*d^2*e^10 - 32*b^2*c^4*d^4*e^8 + 32*b^4*c^2*d^2
*e^10 + 64*a*b*c^4*d^3*e^9 - 32*a*b^3*c^2*d*e^11 + 160*a^2*b*c^3*d*e^11 - 192*a*b^2*c^3*d^2*e^10) - (d + e*x)^
(1/2)*(32*a^2*c^3*e^12 + 96*c^5*d^4*e^8 - 128*b*c^4*d^3*e^9 + 64*b^2*c^3*d^2*e^10 - 64*a*b*c^3*d*e^11))*((b^4*
d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*
b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*1i)/((((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c -
b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2
*c)))^(1/2)*((((b^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) -
6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*((d + e*x)^(1/2)*((b^4*d + 8*a^2*c^
2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a^2*b*c*e)/(2*(a
^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2)*(512*a^5*c^4*e^10 + 32*a^3*b^4*c^2*e^10 - 256*a^4*b^2*c^3*e^10 + 76
8*a^4*c^5*d^2*e^8 + 64*a^2*b^4*c^3*d^2*e^8 - 448*a^3*b^2*c^4*d^2*e^8 - 896*a^4*b*c^4*d*e^9 - 64*a^2*b^5*c^2*d*
e^9 + 480*a^3*b^3*c^3*d*e^9) - 384*a^4*c^4*d*e^10 - 384*a^3*c^5*d^3*e^8 + 96*a^2*b^2*c^4*d^3*e^8 - 96*a^2*b^3*
c^3*d^2*e^9 + 384*a^3*b*c^4*d^2*e^9 + 96*a^3*b^2*c^3*d*e^10) - (d + e*x)^(1/2)*(128*a^3*b*c^3*e^11 + 192*a^3*c
^4*d*e^10 - 32*a^2*b^3*c^2*e^11 + 576*a^2*c^5*d^3*e^8 + 64*b^4*c^3*d^3*e^8 - 64*b^5*c^2*d^2*e^9 + 64*a*b^4*c^2
*d*e^10 - 384*a*b^2*c^4*d^3*e^8 + 384*a*b^3*c^3*d^2*e^9 - 576*a^2*b*c^4*d^2*e^9 - 288*a^2*b^2*c^3*d*e^10))*((b
^4*d + 8*a^2*c^2*d - a*b^3*e + a*e*(-(4*a*c - b^2)^3)^(1/2) - b*d*(-(4*a*c - b^2)^3)^(1/2) - 6*a*b^2*c*d + 4*a
^2*b*c*e)/(2*(a^2*b^4 + 16*a^4*c^2 - 8*a^3*b^2*c)))^(1/2) + 96*a*c^5*d^4*e^8 + 96*a^2*c^4*d^2*e^10 - 32*b^2*c^
4*d^4*e^8 + 32*b^4*c^2*d^2*e^10 + 64*a*b*c^4*d^...

________________________________________________________________________________________